package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysFloor;

import java.math.BigDecimal;

/**
 * 楼栋管理业务对象 sys_floor
 *
 * @author LSL
 * @date 2024-05-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysFloor.class, reverseConvertGenerate = false)
public class SysFloorBo extends BaseEntity {

    /**
     * 楼ID
     */
    @NotNull(message = "楼ID不能为空", groups = {EditGroup.class})
    private Long floorId;

    /**
     * 楼编号
     */
    @NotBlank(message = "楼编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String floorNum;

    /**
     * 小区楼名称
     */
    @NotBlank(message = "小区楼名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 小区ID
     */
    @NotNull(message = "小区ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long communityId;

    /**
     * 建筑面积
     */
    @NotNull(message = "建筑面积不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal floorArea;

    /**
     * 楼栋加入排序
     */
    @NotNull(message = "楼栋加入排序不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long seq;

    /**
     * 经度
     */
    @NotBlank(message = "经度不能为空", groups = {AddGroup.class, EditGroup.class})
    private String lat;

    /**
     * 纬度
     */
    @NotBlank(message = "纬度不能为空", groups = {AddGroup.class, EditGroup.class})
    private String lng;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;


}
